/**
 * Copyright (c) 2013 onionframework.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.onionframework.code.service;

import javax.annotation.PostConstruct;

import org.onionframework.code.model.Teacher;
import org.onionframework.persistence.dao.GenericDao;
import org.onionframework.persistence.service.GenericServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author allan
 *
 */
@Service("code.teacherService")
public class TeacherService extends GenericServiceImpl<Teacher> {

	@Autowired @Qualifier("code.teacherDao")
	private GenericDao<Teacher> teacherDao;
	
	@PostConstruct
	public void init(){
		super.setDao(teacherDao);
	}
}
